using Habanero.UI.Base;

namespace UseCaseManager.UI.Menu
{
    public class UseCasesAndUseCaseStepsControlMenuItem : MenuItemCreator
    {
        public override void AddToMenu(HabaneroMenu currentMenu, IControlFactory controlFactory)
        {
            HabaneroMenu.Item menuItem = currentMenu.AddMenuItem("Use Case Steps (UseCasesAndUseCaseStepsControl)");
            menuItem.FormControlCreator += (() => new UseCasesAndUseCaseStepsControl(controlFactory));
        }
    }
}
